package com.sc.nft.controller.request;


import com.sc.nft.sup.PageRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;

@Data
public class HotSalePageRequest extends PageRequest {

    @ApiModelProperty("热卖条件排序 0:默认 1:最新 2:价格升序 3:价格降序")
    @NotNull(message = "热卖条件排序不能为空")
    @Range(min = 0, max = 3, message = "热卖条件排序范围为0-3")
    private Integer hotSaleSort;

    @ApiModelProperty("商品名称")
    private String productName;
}
